package com.cqust.icc.entity;

import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 张成
 * @version 1.0
 * @date 2022/3/24 14:26
 */
@Component
public class UserInfo {

    //姓名
    private String username;

    //性别
    private String gender;

    //年龄
    private int age;

    //出生年月
    private String birth;

    //余额
    private double balance;

    //个人爱好
    private List<String> hobby;

    public UserInfo() {
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "username='" + username + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", birth='" + birth + '\'' +
                ", balance=" + balance +
                ", hobby=" + hobby +
                '}';
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public List<String> getHobby() {
        return hobby;
    }

    public void setHobby(List<String> hobby) {
        this.hobby = hobby;
    }

}
